//------------------------------------------------------------------------------
// <copyright file="WindowPrintingOptions.xaml.cs" company="Damian Antonowicz">
//       copyright © 2010 Damian Antonowicz
// </copyright>
// <author>Damian Antonowicz</author>
// <email>poczta@damianantonowicz.pl</email>
//------------------------------------------------------------------------------

using System.Windows;
using DotBeer.Business.Entities;
using DotBeer.UI.WPFClient.Views;

namespace DotBeer.UI.WPFClient
{
	/// <summary>
	/// Interaction logic for WindowPrintingOptions.xaml
	/// </summary>
	public partial class WindowPrintingOptions : Window
	{
        HeroPrintingSettings heroPrintingSettings;

		public WindowPrintingOptions(Hero hero)
		{
			this.InitializeComponent();

            this.heroPrintingSettings = new HeroPrintingSettings(hero);
            this.DataContext = this.heroPrintingSettings;
            this.buttonPrint.Focus();
		}

        private void buttonPrint_Click(object sender, RoutedEventArgs e)
        {
            WindowPrint windowPrint = new WindowPrint(this.heroPrintingSettings);
            windowPrint.Show();

            this.Close();
        }
	}
}
